package com.wx.cloud.user.service;

import com.wx.cloud.user.common.CommonResult;
import com.wx.cloud.user.model.Permission;
import com.wx.cloud.user.model.User;
import com.wx.cloud.user.vo.LoginParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService {
    String register(User user);

    String login(LoginParam loginParam, HttpServletRequest request);

    int perfect(User user);

    User findUserByUserCode(String userCode);

    User getUserByUserCode(String username);

    List<Permission> getPermissionsByUserId(String userCode);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    int updateUser(Map<String, Object> data);

    int delUser(User user);

    CommonResult checkAccessToUri(String uri, String username);
}
